package com.example.mybatisplusdemo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplusdemo.model.domain.Favorite;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mybatisplusdemo.model.domain.Store;
import com.example.mybatisplusdemo.model.dto.FavoriteDTO;
import com.example.mybatisplusdemo.model.dto.PageDTO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lxp
 * @since 2025-07-04
 */
public interface IFavoriteService extends IService<Favorite> {

    boolean addFavoriteStore(List<Favorite> favoriteList);

    boolean removeFavoriteStore(Favorite favorite);

    Page<FavoriteDTO> listFavoriteByUserId(PageDTO pageDTO, Long userId);

    List<Store> getFavoriteShopsById(Long id);

    boolean getFavoriteByUserStore(Long userId, Long storeId);
}
